package com.smartstate.IOC.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("equipment")
public class EquipMent implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    @TableField(value = "id", fill = FieldFill.INSERT)
    private String id;

    @TableField(value = "deviceId")
    private String deviceId;


    /**
     * 名称
     */
    private String name;

    /**
     * 别名
     */
    private String alias;

    /**
     * 设备类型 1.a设备 , 0.b设备
     */
    @TableField(value = "type")
    private Integer   type;

    /**
     * 设备状态  1.在线   0.离线
     */
    private Integer enabled;

    @TableField(value = "additionalAttribute")
    @ApiModelProperty(value = "附加属性")
    private String additionalAttribute;

    @TableField(value = "cycle")
    @ApiModelProperty(value = "采集周期")
    private String cycle;

    @TableField(exist = false)
    @ApiModelProperty(value = "空间建模")
    private ObjMoudel space;

    @TableField(exist = false)
    @ApiModelProperty(value = "组织建模")
    private ObjMoudel organization;

    @TableField(exist = false)
    @ApiModelProperty(value = "成本建模")
    private ObjMoudel costOf;

    @TableField(exist = false)
    @ApiModelProperty(value = "设备类型")
    private EquipmentType equipmentType;

    @TableField(exist = false)
    @ApiModelProperty(value = "空间建模")
    private String objId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;


    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField(value = "createUser", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @TableField(value = "updateUser", fill = FieldFill.UPDATE)
    private String updateUser;

}
